from setuptools import setup, find_packages

setup(
    name="myapp",  # 项目名称（pip install时使用）
    version="0.1.0",
    package_dir={"": "src"},  # 指定包根目录为src
    packages=find_packages(where="src"),  # 自动发现src下的包
    install_requires=[
        "fastapi>=0.95.0",
        "uvicorn>=0.21.0",
        "pydantic>=1.10.0",  # 按需添加依赖
    ],
    python_requires=">=3.8",
    extras_require={
        "dev": ["pytest", "httpx", "black"]  # 开发依赖
    },
)
